import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const router = new VueRouter({
    routes: [
        {
            path: "/",
            redirect: "/register"
        },
        {
            path: "/profile", //用户档案
            component: () => import("../pages/Profile/Profile")
        },
        {
            path: "/memberCenter", //用户中心
            component: () => import("../pages/memberCenter/MemberCenter")
        },
        {
            path: "/visionRecord", //视力档案
            component: () => import("../pages/visionRecord/VisionRecord")
        },
        {
            path: "/integral",//用户积分
            component: () => import("../pages/integral/Integral")
        },
        {
            path: "/discount",//折扣
            component: () => import("../pages/discount/Discount")
        },
        {
            path: "/order",//订单
            component: () => import("../pages/order/Order")
        },
        {
            path: "/MyPrivilege", //会员权益
            component: () => import("../pages/myPrivilege/MyPrivilege"),
        },
        {
            path: "/register",//注册
            component: () => import("../pages/register/Register.vue")
        },
        // {
        //     path: "/addPrfile",//添加视力档案
        //     component: ()=> import("../pages/Profile/AddProfile.vue")
        // }
    ]
});

export default router;
